<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="/system/include/taglib.jsp"%>
<html>
<head>
<base href="${pageScope.basePath }">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中山市中凯信息科技有限公司</title>
<link type="text/css" rel="stylesheet" href="system/css/public.css" />
<link type="text/css" rel="stylesheet" href="system/css/left.css" />
</head>
<body>
<div class="left">
	<div class="menu" style="margin:auto;">		
			<div class="top">系统功能</div>			
			<div class="middle">
				<mytag:listMenuForLeft menu1="menuList1" menu2="menuList2" menu3="menuList3"></mytag:listMenuForLeft>
				<logic:iterate id="menu1" name="menuList1">
						<div class="channel" onClick="menuFold('${menu1.menuId}');" style="cursor: pointer">
							<img id="channel_img${menu1.menuId}" src="system/images/channel_open.gif" align="texttop" onClick="menuFold('${menu1.menuId}');" />
							${menu1.menuName}
						</div>
						<div class="column" id="channel${menu1.menuId}_column" style="margin:auto;display:block;">				
							<ul>
								<logic:iterate id="menu2" name="menuList2">
									<c:if test="${menu2.menuParent==menu1.menuId }">
					                    <li onMouseOver="this.style.backgroundColor='#FFFFD4'" onMouseOut="this.style.backgroundColor='#FFFFFF'">
											<a href="${menu2.menuUrl}" target="main">${menu2.menuName}</a>
										</li>
										<logic:iterate id="menu3" name="menuList3">
											<c:if test="${menu3.menuParent==menu2.menuId }">
							                    <li onMouseOver="this.style.backgroundColor='#FFFFD4'" onMouseOut="this.style.backgroundColor='#FFFFFF'">
													&nbsp;&nbsp;&nbsp;&nbsp;<a href="${menu3.menuUrl}" target="main">${menu3.menuName}</a>
												</li>
											</c:if>
										</logic:iterate>
									</c:if>
							    </logic:iterate>
							</ul>
						</div>
				</logic:iterate>	
				<div class="channel" onClick="menuFold('99999');" style="cursor: pointer">
					<img id="channel_img99999" src="system/images/channel_open.gif" align="texttop" onClick="menuFold('99999');" />
					消息中心
				</div>
				<div class="column" id="channel99999_column" style="margin:auto;display:block;">
					<ul>
						<li onMouseOver="this.style.backgroundColor='#FFFFD4'" onMouseOut="this.style.backgroundColor='#FFFFFF'">
							<a href="system/message/message_add_form.jsp" target="main">发送消息</a>
						</li>
						<li onMouseOver="this.style.backgroundColor='#FFFFD4'" onMouseOut="this.style.backgroundColor='#FFFFFF'">
							<a href="system/message/message_list_form.jsp" target="main">我的消息</a>
						</li>
					</ul>
				</div>
			</div>
		<div class="bottom"></div>
	</div>
</div>
<script type="text/javascript" language="javascript">
	function menuFold(id){
		var columnId="channel"+id+"_column";
		var column=document.getElementById(columnId);
		var channelImgId="channel_img"+id;
		var channelImg=document.getElementById(channelImgId);
		if(column.style.display=="none"){
			column.style.display="block";
			channelImg.src="system/images/channel_open.gif";
		}
		else{
			column.style.display="none";
			channelImg.src="system/images/channel_close.gif";
		}
	}
</script>
</body>
</html>
